//
//  MyTableViewCell.m
//  LFCWarmSystem
//
//  Created by 李福才 on 16/4/24.
//  Copyright © 2016年 李福才. All rights reserved.
//

#import "MyTableViewCell.h"
#import <Foundation/Foundation.h>

@implementation MyTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(nullable NSString *)reuseIdentifier{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _lblCenter = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, self.frame.size.width, TABLEVIEWCELLHEIGHT)];
        _lblCenter.textAlignment = NSTextAlignmentCenter;
        [_lblCenter setTintColor:COLOR_TEXT_SELECTED];
        _lblCenter.textColor = [UIColor blackColor];
        _lblCenter.font = TABLECELLTEXTFONT;
        self.backgroundColor = CLEARCOLOR;
        [self addSubview:_lblCenter];
    }
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setFrame:(CGRect)frame {
    if (_lblCenter) {
        _lblCenter.center = CGPointMake(self.center.x,_lblCenter.center.y);
    }
    [super setFrame:frame];
}
@end
